package com.the_ring.behavior.command;

/**
 * @author: t22306139
 * @date: 2023/12/1  14:34
 */
public class TurnOnCommand implements Command{

    private Light light;

    public TurnOnCommand(Light light) {
        this.light = light;
    }

    @Override
    public void exec() {
        light.on();
    }

    @Override
    public void undo() {
        light.off();
    }
}
